package com.example.permission.controller;

import com.example.permission.model.resp.AccessLogVO;
import com.example.permission.service.AccessLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author qwer3
 * @version 1.0.0
 * @create 2025/11/22 20:16
 */
@RestController
@RequestMapping("/api/sys/access-log")
@RequiredArgsConstructor
public class AccessLogController {
    private final AccessLogService accessLogService;

    @GetMapping("/list")
    public List<AccessLogVO> listAccessLog() {
        return accessLogService.listAccessLog();
    }
}
